﻿Imports DAO
Imports DTO
Public Class NhaCungCapBUS
    Public Shared Function loadncc() As DataTable
        Dim nccDAO As New NhaCungCapDAO()
        Return nccDAO.LoadNCC()
    End Function

    Public Shared Function LAYTHEIID(ByVal ncc As Integer) As NhaCungCapDTO
        Dim nccDAO As New NhaCungCapDAO()
        Return nccDAO.LAYTHEOID(ncc)
    End Function


    Public Shared Function LAYTATCA() As IList
        Dim nccDAO As New NhaCungCapDAO()
        Return nccDAO.layTatCa()
    End Function


    Public Shared Function LAYTATCATT() As DataTable
        Dim nccDAO As New NhaCungCapDAO()
        Return nccDAO.LayTatCaTT()
    End Function



    Public Shared Sub THEM(ByVal ncc As NhaCungCapDTO)
        Dim nccDAO As New NhaCungCapDAO()
        nccDAO.Them(ncc)
    End Sub

    Public Shared Sub CAPNHAP(ByVal ncc As NhaCungCapDTO)
        Dim nvDAO As New NhaCungCapDAO()
        nvDAO.CapNhap(ncc)
    End Sub


    Public Shared Sub XOA(ByVal id As Integer)
        Dim khDAO As New NhaCungCapDAO()
        khDAO.Xoa(id)
    End Sub

End Class
